package mspbots.autotask.client.core.client;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * mspbots.core.autotask.core.common.ClientProperties
 *
 * <li>Click the + tab to create a new query.</li>
 * <li>Enter the Introduction to Autotask PSA REST API calls you'd like to send and the entity path of the resource you wish to query.
 * In the above example, the user is sending a GET call to retrieve field information about the BillingCodes entity.<br></li>
 * <li>Select the Headers tab.<br></li>
 * <li>In the Headers field, add the following keys and values:<br></li>
 * <li>ApiIntegrationcode: Enter your API tracking identifier key.<br></li>
 * <li>UserName: Enter the user name of an API user associated with your implementation.<br></li>
 * <li>Secret: Enter the password for the API user.<br></li>
 * <li>Content-Type: Enter application/json.<br></li>
 * <li>Click Send to transmit your query to the REST API.<br></li>
 * <li>To save the query configuration, click Save.<br></li>
 * <a href="https://www.autotask.net/help/DeveloperHelp/Content/AdminSetup/2ExtensionsIntegrations/APIs/REST/General_Topics/REST_Using_Postman.htm">auth do</a>
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/7/9
 */
@Data
public class ClientProperties {

    /**
     * Enter the user name of an API user associated with your implementation.
     */
    @NotEmpty
    private String userName;

    /**
     * Enter the password for the API user.
     */
    @NotEmpty
    private String secret;

    /**
     * Enter the tenantId for the API user.
     */
    @NotNull
    private Long tenantId;

    /**
     * auto task api server
     */
    private String baseUrl;

}
